package com.jiarupc.response;

public enum ResponseCode {


    // 成功返回
    SUCCESS(200, "SUCCESS"),
    // 执行错误
    ERROR(1001, "ERROR"),
    // 需要登陆
    NEED_LOGIN(1002, "NEED_LOGIN"),
    // 缺失参数
    ILLEGAL_ARGUMENT(1003, "ILLEGAL_ARGUMENT");

    private final int code;
    private final String desc;


    ResponseCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

}
